﻿<html>  
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta name="viewport" content="initial-scale=1">


<style>
body{background:#f7f7f0;}
textarea{font-size:1rem;}
</style>
<title>发言</title>

<script>
function $(id){return document.getElementById(id);}
function Start()
{


var uid=localStorage.getItem("uid");
if(uid==null){
	$("hint").style.display="inline";
}
else{
	var nick=localStorage.getItem("nick");
	$("name").innerText=(nick==null||nick=="")?uid:nick;
}

with(document.theform.what){
var replyto=localStorage.getItem("replyto");
if(replyto!=null)
	value="@"+replyto+" ";
focus();
}

//}

//LoadPage("vcode.php",Show);
}


function Show()
{
if(xmlhttp.responseText=="-"){
	alert("系统繁忙");
}
else{
	$("vstr").innerText=xmlhttp.responseText;
}

}

function Go()
{
with(document.theform){
	if(what.value==""){
		alert("不能为空");
		return false;
	}
	who.value=$("name").innerText;
	submit();
}
return true;			

}






</script>

</head>
<body onload="Start()">
[<a href="index.html">返回</a>]

<br><br>

<table style="width:100%">
<form name="theform"  method="post" action="https://www.minesweeper.cn/guest/save_new.php">
<tr><td valign=top style="width:2.5rem">ID：</td>
<td>
<span id=name></span>
<input type=hidden name=who value=""  />
<span id=hint style="display:none;color:red;">(需先完成游戏获得id才能发帖)</span>
</td></tr>

<tr><td valign=top>内容</td>
<td><textarea name=what style="width:100%" rows=10></textarea>
<br>
</td></tr>

<!--tr>
<td>验证码</td>
<td>
<input type="text" name="vcode" size=10> <span id="vstr"></span>

</td>
</tr-->

</form>

<tr>
<td></td>
<td>
<input type="button" value="提交" onclick="Go()">
<br><br>（一天只能发一帖）
</td>
</tr>

</table>
</body></html>